.app {
    background: #F5F5F5;
    height: calc(100vh);
    overflow: scroll;
    display: flex;
    flex-direction: column;
    font-family: PingFangSC;

    .clearfix::after {
        content: '';
        display: block;
        height: 0;
        clear: both;
    }

    .clearfix {
        zoom: 1;
    }

    .NavBar {
        width: 750px;
        height: 80px;
        background: rgba(255, 255, 255, 1);
        display: flex;
        flex-direction: row;
        margin-bottom: 20px;

        .item {
            flex: 1;
            text-align: center;
            line-height: 42px;
            padding-top: 20px;
            font-size: 30px;
            font-weight: 400;
            color: rgba(51, 51, 51, .6);

            &.active {
                font-weight: 500;
                color: rgba(51, 51, 51, 1);
                position: relative;

                &:before {
                    position: absolute;
                    content: '';
                    width: 90px;
                    height: 6px;
                    background: rgba(248, 101, 53, 1);
                    left: 50%;
                    transform: translateX(-50%);
                    bottom: 0;
                }
            }

        }
    }

    .redList {
        flex: 1;

        .nouse {
            position: relative;
            margin-bottom: 20px;

            &.isNew {
                &::before {
                    position: absolute;
                    content: '';
                    width: 53px;
                    height: 33px;
                    background: url('images/icon/newRedpacket.png') no-repeat center;
                    left: 13px;
                    top: 9px;
                }
            }

            .bg {
                margin-left: 26px;
                height: 200px;
                width: 690px;
                display: flex;
                flex-direction: row;

                .discounts {
                    width: 180px;
                    text-align: center;

                    .redMoney {
                        padding-top: 44px;
                        color: #FFFFFF;
                        font-size: 56px;
                        font-weight: 600;
                        line-height: 78px;

                        .currency {
                            vertical-align: super;
                            font-size: 30px;
                            font-weight: 600;
                            line-height: 42px;
                        }
                    }

                    .useLimit {
                        font-size: 22px;
                        font-weight: 400;
                        color: rgba(255, 255, 255, 1);
                        line-height: 30px;
                    }
                }

                .redContent {
                    flex: 1;
                    display: flex;
                    flex-direction: column;

                    .main {
                        height: 130px;
                        padding-top: 20px;
                        padding-right: 30px;

                        .content {
                            float: left;
                            width: 330px;
                            padding-left: 20px;

                            .redTitle {
                                height: 80px;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                display: -webkit-box;
                                -webkit-line-clamp: 2;
                                -webkit-box-orient: vertical;
                                font-size: 28px;
                                font-weight: 500;
                                color: rgba(51, 51, 51, 1);
                                line-height: 40px;
                            }

                            .useTime {
                                font-size: 22px;
                                color: rgba(51, 51, 51, .6);
                                line-height: 30px;
                            }
                        }

                        .btn {
                            float: right;
                            margin-top: 34px;
                            width: 116px;
                            height: 44px;
                            border-radius: 21px;
                            border: 2px solid rgba(255, 82, 87, 1);
                            text-align: center;
                            line-height: 44px;
                            font-size: 22px;
                            color: rgba(255, 82, 87, 1);

                            &.freezen {
                                color: #FFFFFF;
                                border: none;
                                background: linear-gradient(137deg, rgba(194, 194, 194, 1) 0%, rgba(142, 142, 142, 1) 100%);
                            }
                        }
                    }

                    .ruleTitle {
                        flex: 1;
                        line-height: 50px;
                        padding-left: 20px;
                        font-size: 22px;
                        color: rgba(51, 51, 51, .6);
                        border-top: 1px solid #EFEFEF;

                        .down {
                            float: right;
                            width: 26px;
                            height: 26px;
                            background: url(../images/icon_down.png) no-repeat center;
                            margin-right: 20px;
                            margin-top: 12px;

                            &.up {
                                background: url(../images/icon_up.png) no-repeat center;
                            }
                        }
                    }
                }

                &.normal {
                    background: url(../images/bg_redMoney.png) no-repeat center;
                }

                &.discount {
                    background: url(../images/bg_discount.png) no-repeat center;

                    .btn {

                        border-color: #317BF7;
                        color: #317BF7;
                    }
                }

                &.hasUseds {
                    background: url(../images/bg_hasUsed.png) no-repeat center;

                    .btn {
                        display: none;
                    }
                }

                &.hasExpired {
                    background: url(../images/bg_hasExpired.png) no-repeat center;

                    .btn {
                        display: none;
                    }
                }
            }

            .tips {
                min-height: 40px;
                padding: 20px;
                font-size: 22px;
                color: rgba(51, 51, 51, .6);
                line-height: 30px;
                display: none;
                border-radius: 0px 0px 4px 4px;
                background: rgba(255, 255, 255, 1);
                width: 690px;
                box-sizing: border-box;
                margin-left: 26px;
                background-image: url(../images/icon_line.png);
                background-repeat: no-repeat;
                background-position-y: -10px;

                &.active {
                    display: block;
                }
            }
        }
    }


}

.redpacketPop {
    background: #FFF;
    width: 750px;
    background: rgba(255, 255, 255, 1);
    border-radius: 10px 10px 0px 0px;
    padding-bottom: 60px;

    >.title {
        height: 100px;
        text-align: center;
        font-size: 36px;
        font-weight: 500;
        color: rgba(51, 51, 51, 1);
        line-height: 100px;
        padding-left: 100px;

        .close {
            float: right;
            width: 30px;
            height: 30px;
            padding: 35px;
            background: url(../images/icon_close.png) no-repeat center;
        }
    }

    .shopList {
        border-bottom: 1px solid rgba(221, 221, 221, 0.5);
        max-height: 900px;
        overflow: scroll;
        .shopItem {
            height: 200px;
            background: rgba(255, 255, 255, 1);
            box-shadow: 0px -1px 0px 0px rgba(221, 221, 221, 0.5);
            box-sizing: border-box;
            padding: 24px 30px;
            display: flex;
            flex-direction: row;

            .img {
                width: 140px;
                height: 140px;
                background: rgba(245, 245, 245, 1);
                border-radius: 6px;
                position: relative;
                margin-top: 6px;

                img {
                    max-width: 140px;
                    position: absolute;
                    left: 50%;
                    top: 50%;
                    transform: translate(-50%, -50%);
                }

                .hot {
                    position: absolute;
                    left: -8px;
                    top: 7px;
                    width: 56px;
                    height: 32px;
                    background: url('../images/icon_hot.png') no-repeat center;
                    line-height: 28px;
                    box-sizing: border-box;
                    text-align: center;
                    color: #FFF;
                    font-size: 18px;
                }
            }

            .shopDetail {
                flex: 1;
                padding-left: 10px;

                .title {
                    height: 75px;
                    font-size: 26px;
                    font-weight: 600;
                    color: rgba(34, 33, 45, 1);
                    line-height: 37px;
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                }

                .bottom {
                    margin-top: 8px;

                    .info {
                        float: left;

                        .money {
                            font-size: 30px;
                            font-weight: 600;
                            color: rgba(248, 101, 53, 1);
                            line-height: 42px;

                            >span {
                                font-size: 20px;
                                font-weight: 400;
                                color: rgba(168, 167, 177, 1);
                                line-height: 29px;
                                text-decoration: line-through;
                                margin-left: 6px;
                            }
                        }

                        .inventory {
                            font-size: 20px;
                            color: rgba(248, 101, 53, 1);
                            line-height: 24px;

                            >span {
                                color: rgba(168, 167, 177, 1);
                                line-height: 28px;
                                margin-left: 8px;
                            }
                        }
                    }

                    .btn {
                        float: right;
                        width: 88px;
                        height: 48px;
                        background: linear-gradient(137deg, rgba(64, 66, 78, 1) 0%, rgba(30, 31, 38, 1) 100%);
                        border-radius: 24px;
                        font-size: 24px;
                        color: rgba(255, 255, 255, 1);
                        line-height: 48px;
                        text-align: center;
                        margin-top: 13px
                    }

                }
            }
        }
    }

    .moreShop {
        width: 270px;
        height: 64px;
        border-radius: 40px;
        border: 2px solid rgba(34, 33, 45, 1);
        margin: 60px auto 0;
        text-align: center;
        line-height: 64px;
    }
}


.nolist {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #F5F5F5;

    div {
        font-size: 32px;
        font-family: PingFangSC-Regular;
        font-weight: 400;
        color: rgba(34, 33, 45, 0.34);
    }
}